package com.ai.bitcoin.constant;


public class JwtConstant {
    /**
     * 数据请求返回码
     */
    public static final String RESCODE_SUCCESS = "1000"; // 成功
    public static final String RESCODE_SUCCESS_MSG = "1001"; // 成功(有返回信息)
    public static final String RESCODE_EXCEPTION = "1002"; // 请求抛出异常
    public static final String RESCODE_NOLOGIN = "1003"; // 未登陆状态
    public static final String RESCODE_NOEXIST = "1004"; // 查询结果为空
    public static final String RESCODE_NOAUTH = "1005"; // 无操作权限

    /**
     * jwt
     */
    public static final String JWT_ID = "jwt";
    public static final String JWT_SECRET = "7786df7fc3a34e26a61c034d5ec8245d";
    public static final int JWT_TTL = 60 * 60 * 1000; // millisecond
    public static final int JWT_REFRESH_INTERVAL = 55 * 60 * 1000; // millisecond
    public static final int JWT_REFRESH_TTL =  365 * 24 * 60 * 60 * 1000; // millisecond

}

